package com.baizhi.mall.service;

import com.baizhi.mall.entity.mysql.BzCategoryDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 商品三级分类 服务类
 * </p>
 *
 * @author zhw
 * @since 2021-05-17
 */
public interface IBzCategoryService extends IService<BzCategoryDO> {
    //分页查询
    PageInfo<BzCategoryDO> selectByPage(Integer pageNum,Integer pageSize);
    //根据id查
    List<BzCategoryDO> selectAll(Integer parentId);
    //
    List<BzCategoryDO> selectTree();
    //增
    void insert(BzCategoryDO category);
    //删
    void delete(Integer id);
    //改
    void update(BzCategoryDO category);
    //删除显示和品牌id
    void updateStatus(Integer showStatus,Integer categoryId);
}
